签约查询接口
根据签约id查询签约信息。
请求参数 | 类型 | 描述 |
---|---|---|
contract_id | string | 签约ID |
query | object | 声明请求的查询参数 |
appid | string | 商户签约小程序APPID |
php
$instance->v3->offlineface->contracts->_contract_id_->getAsync([
'contract_id' => 'CI8CD208Z7e9906f89',
'query' => [
'appid' => 'wx8888888888',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/offlineface/contracts/{contract_id}')->getAsync([
'contract_id' => 'CI8CD208Z7e9906f89',
'query' => [
'appid' => 'wx8888888888',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/offlineface/contracts/{contract_id}']->getAsync([
'contract_id' => 'CI8CD208Z7e9906f89',
'query' => [
'appid' => 'wx8888888888',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->offlineface->contracts->_contract_id_->get([
'contract_id' => 'CI8CD208Z7e9906f89',
'query' => [
'appid' => 'wx8888888888',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/offlineface/contracts/{contract_id}')->get([
'contract_id' => 'CI8CD208Z7e9906f89',
'query' => [
'appid' => 'wx8888888888',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/offlineface/contracts/{contract_id}']->get([
'contract_id' => 'CI8CD208Z7e9906f89',
'query' => [
'appid' => 'wx8888888888',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
contract_id | string | 签约ID |
mchid | string | 商户号 |
organization_id | string | 机构ID |
use_id | string | 用户ID |
openid | string | 签约用户openid |
contract_state | string | 签约状态NOT_CONTRACTED | TERMINATED | CONTRACTED 枚举值之一 |
contract_signed_time | string | 签约时间 |
contract_terminated_time | string | 解约时间 |
contract_mode | string | 签约模式LIMIT_BANK_CARD | PRIORITY_BANK_CARD | LIMIT_NONE 枚举值之一 |
contract_bank_card_from | string | 签约卡来源MERCHANT_LIMITED_BANK_CARD | USER_SELECT_FREE 枚举值之一 |
参阅 官方文档